﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;

namespace WebCrawler
{
   public class HttpWeb: IHttp
    {
        private HttpWebRequest request;

        public void Open(string url, int timeout)
        {
            request = (HttpWebRequest)WebRequest.Create(url);
            request.Timeout = timeout;
        }

        public System.IO.Stream GetStream()
        {
            return request.GetResponse().GetResponseStream();
        }
    }
}
